var express = require('express');
var router = express.Router();
var userctrl = require('../code/users');

/* GET home page. */
router.get('/loginstatus', function (req, res, next) {
    if (req.session.winall) {
        userctrl.userctrl.loginstatus(req.session.winall, function (json_data) {
            res.send(json_data);
        })
    } else {
        res.send({code: 0, msg: '未登入'})
    }
});



module.exports = router;
